/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.pig4cloud.pig.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 服务订单
 *
 * @author wangyl
 * @date 2023-06-05 09:10:49
 */
@Data
@TableName("serve_order")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "服务订单")
public class ServeOrder extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description ="ID")
    private Integer id;

    /**
     * 订单号
     */
    @Schema(description ="订单号")
    private Integer orderNo;

    /**
     * 服务类型
     */
    @Schema(description ="服务类型")
    private Integer serveType;

    /**
     * 服务名称
     */
    @Schema(description ="服务名称")
    private String serveName;

    /**
     * 用户ID
     */
    @Schema(description ="用户ID")
    private Integer userId;

    /**
     * 用户名称
     */
    @Schema(description ="用户名称")
    private String userName;

    /**
     * 用户手机号
     */
    @Schema(description ="用户手机号")
    private String userPhone;

    /**
     * 用户区域
     */
    @Schema(description ="用户区域")
    private String userRegion;

    /**
     * 用户详细地址
     */
    @Schema(description ="用户详细地址")
    private String userAddress;

    /**
     * 工程师ID
     */
    @Schema(description ="工程师ID")
    private Integer engineerId;

    /**
     * 订单金额
     */
    @Schema(description ="订单金额")
    private BigDecimal orderFee;

    /**
     * 下单时间
     */
    @Schema(description ="下单时间")
    private LocalDateTime orderTime;

    /**
     * 是否是年卡订单,0：否，1：是
     */
    @Schema(description ="是否是年卡订单,0：否，1：是")
    private String isYearCard;

    /**
     * 预约服务时间
     */
    @Schema(description ="预约服务时间")
    private LocalDateTime reserveTime;

    /**
     * 实际服务时间
     */
    @Schema(description ="实际服务时间")
    private LocalDateTime actualTime;

    /**
     * 状态
     */
    @Schema(description ="状态")
    private Integer state;

    /**
     * 上门费用
     */
    @Schema(description ="上门费用")
    private BigDecimal visitingFee;

    /**
     * 服务费用
     */
    @Schema(description ="服务费用")
    private BigDecimal serveFee;

    /**
     * 补充图片
     */
    @Schema(description ="补充图片")
    private String image;

    /**
     * 订单备注
     */
    @Schema(description ="订单备注")
    private String remark;


}
